var MsgToos = {};


var msgMap = {};

//1、申购规则
msgMap["sale01"] ="申购数量必须是${0}的整数倍！";
msgMap["sale02"] ="申购数量不能大于${0}！";
msgMap["sale03"] ="申购数量不能小于${0}！";

//2、交易委托规则
msgMap["order03"] = "委托价格不能高于涨停价！";
msgMap["order04"] = "委托价格不能低于跌停价！";
msgMap["order05"] = "最小变动价位是${0}";
msgMap["order06"] = "委托数量必须是${0}的整数倍！";
msgMap["order18"] = "委托数量不能超过${0}！";

//发售系统-委托下单提示信息拼装
MsgToos.getMsg = function(str){
	var retMsg = str;
	if(strUtil.isNull(str)) return "";
	if(str.indexOf("|")>-1){
		var code = str.split("|")[0];
		var msg = str.split("|")[1];
		var pval = str.split("|")[2];
		if(msgMap[code]!=null){
			retMsg = msgMap[code].replace("${0}",pval);
		}
	}
	return retMsg;
}

